package cn.edu.scau.vsac.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 我要帮扶表（help_offer）(HelpOffer)表实体类
 *
 * @author makejava
 * @since 2023-08-08 14:35:47
 */
@Data
public class HelpOffer extends Model<HelpOffer> {
    //帮扶ID，主键，自增
    @TableId(type = IdType.AUTO)
    private Long offerId;
    //求助ID，外键参考help_request
    private Long requestId;
    //帮扶人ID
    private Long helperId;
    //帮扶人用户名
    private String helperUsername;
    //帮扶内容
    private String offerContent;
    //创建时间
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}

